<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">使用状态:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <div class="radio">-->
<!--                {foreach name="fenableList" item="vo"}-->
<!--                <label for="row[fenable]-{$key}"><input id="row[fenable]-{$key}" name="row[fenable]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>-->
<!--                {/foreach}-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fname" class="form-control" name="row[fname]" type="text" value="{$row.fname|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fnumber" class="form-control" name="row[fnumber]" type="text" value="{$row.fnumber|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">数据中心/组织/产品:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="first,second,fk_bdl_bd_material">
                <select class="first form-control" name="row[fk_bdl_bd_datacenter]" data-url="bdl/bd/datacenter/getFilter?type=get_datacenter_list_for_form_select">
                    <option value="{$row.fk_bdl_bd_datacenter}" selected="">----</option>
                </select>
                <select class="second form-control" id="forgid" name="row[forgid]" data-url="bdl/bd/datacenter/getFilter?type=get_org_list_for_form_select" data-query-name="fk_bdl_bd_datacenter">
                    <option value="{$row.forgid}" selected="">---</option>
                </select>
                <select class="fk_bdl_bd_material form-control" id="fk_bdl_bd_material" name="row[fk_bdl_bd_material]" data-url="bdl/bd/datacenter/getFilter?type=get_fk_bdl_bd_material_list_for_form_select" data-query-name="forgid">
                    <option value="{$row.fk_bdl_bd_material}" selected="">---</option>
                </select>
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">表面:</label>
        <div class="col-xs-12 col-sm-8 fk_bdl_bd_surface">
            <input type="text" class="form-control" disabled placeholder="{if isset($row)} {$row.surface.fname|htmlentities} {else} 请先分配数据中心和组织 {/if}">
        </div>
    </div>


    <input type="hidden" id="sur" value="{if !empty($row.fk_bdl_bd_surface)} 1 {else} 2 {/if}">




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-fk_bdl_imageurl" class="form-control" size="50" name="row[fk_bdl_imageurl]" value="{$row.fk_bdl_imageurl|htmlentities}" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-fk_bdl_imageurl" class="btn btn-danger faupload" data-input-id="c-fk_bdl_imageurl" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-fk_bdl_imageurl"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-fk_bdl_imageurl" class="btn btn-primary fachoose" data-input-id="c-fk_bdl_imageurl" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-fk_bdl_imageurl"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-fk_bdl_imageurl"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_comment" class="form-control" name="row[fk_bdl_comment]" type="text" value="{$row.fk_bdl_comment|htmlentities}">
        </div>
    </div>



    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>
